//
//  ZTModel.m
//  练习
//
//  Created by hcios on 2017/7/7.
//  Copyright © 2017年 hcios. All rights reserved.
//

#import "ZTModel.h"
#import "Tools.h"

@implementation ZTModel

-(instancetype)initWithDict:(NSDictionary *)dict{
    
    if (self = [self init]) {
        _destination_id = numberToString(dict[@"destination_id"]);
        _selfId = numberToString(dict[@"id"]);
        _image_url = NonEmptyString(dict[@"image_url"]);
        _name = NonEmptyString(dict[@"name"]);
        _title = NonEmptyString(dict[@"title"]);
        _updated_at = numberToString(dict[@"updated_at"]);
    }
    return self;
}

@end
